package cn.tcmp.controller;
import cn.tcmp.client.DetailClient;
import com.sun.xml.bind.v2.model.core.ID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Controller
@RequestMapping(value = "handler")
public class BbsIndex {

    @Autowired
    private DetailClient detailClient;

   @RequestMapping(value = "toIndex")
    public String toIndex(){
       return "index";
   }

    @RequestMapping(value = "toList")
    public String toList(String type, Model model){
        model.addAttribute("type", type);
        return "bbs_List";
    }



}
